﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Gnosis.Alexandria.Model
{
    //TODO: Change Model to not be stateful
    public interface IIdentifiable
        : IEquatable<IIdentifiable>
    {
        long Id { get; }
        bool IsChanged { get; }
        bool IsDeleted { get; }
        bool IsNew { get; }
        string RecordName { get; }
        IRepository Repository { get; set; }
        IDictionary<string, object> Changes();
        void Delete();
        void Initialize(IDictionary<string, object> data);
    }
}
